<?php

require_once "core/application/models/mrequests/mrequests1.php";

class Mrequests2 extends Mrequests1 {

    private $_query   = NULL;
    public $_fetch = array();

    protected function getFullList() {
        /**
         *  полный список запросов
         */
        DB::getInstance()->openConnectionToGS();
        $this->_query = "SELECT `id`, `from`, `date`, `type` FROM `personal_requests` WHERE `toId` = '$_SESSION[id]' AND `status` = '0'";
        $this->_fetch = DB::getInstance()->sql($this->_query);
        while ($data = mysql_fetch_assoc($this->_fetch)) {
            $list[] = $data;
        }
        return $list;
        DB::getInstance()->closeConnection();
        unset($this->_query);
    }

}

?>
